<!--收支记录-->
<div class="modal fade bs-example-modal-lg in" data-bs-backdrop="static" tabindex="-1" id="modal-record">
  <div class="modal-dialog modal-xl modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h6 class="modal-title" id="exampleModalLiveLabel">添加收支记录</h6>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body" style="padding-top:0.5rem;">
        <form action="" method="post" id="record_content">
          <input type="hidden" name="order_id" value="{:$order['id']}" />
          <input type="hidden" name="record_id" value="" />
          
          <div class="row mb-3">
              <div class="col-md-4 row">
                <?php $field = 'charge_type'; $vo = ['name'=>'评估目的','type'=>'select1','params'=>$PaymentRecordModel->getChargeTypeList()]; ?>
                <div class="col-md-5" style="padding-right: 2px;">
                  {include file="html/fields/select1" /}
                </div>
                <?php $field = 'charge_type2'; $vo = ['name'=>'&nbsp;&nbsp;&nbsp;&nbsp;','type'=>'select1','params'=>arrayParamExtractVal($PaymentRecordModel->getChargeTypeChild0())]; ?>
                <div class="col-md-7" style="padding-left: 0px;">
                  {include file="html/fields/select1" /}
                </div>
              </div>

              <?php $field = 'invoice_total'; $vo = ['name'=>'已开票','type'=>'disabled']; ?>
              <div class="col-md-4">
                {include file="html/fields/disabled" /}
              </div>

              <?php $field = 'amount'; $vo = ['name'=>'金  额','type'=>'number']; ?>
              <div class="col-md-4">
                {include file="html/fields/number" /}
              </div>
          </div>

          <div class="row mb-3">
              <?php $field = 'get_type'; $vo = ['name'=>'收支方式','type'=>'select1','params'=>$PaymentRecordModel->getGetTypeList()]; ?>
              <div class="col-md-4">
                {include file="html/fields/select1" /}
              </div>

              <?php $field = 'payer'; $vo = ['name'=>'缴费人','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'admin_id'; $vo = ['name'=>'收(退)费人','type'=>'select1','params'=>$admins]; ?>
              <div class="col-md-4">
                {include file="html/fields/select1" /}
              </div>
          </div>

          <div class="row mb-3">
              <?php $field = 'collection_time'; $vo = ['name'=>'收支时间','type'=>'date']; ?>
              <div class="col-md-4">
                {include file="html/fields/date" /}
              </div>

              <?php $field = 'remark'; $vo = ['name'=>'备注','type'=>'textarea']; ?>
              <div class="col-md-8">
                {include file="html/fields/textarea" /}
              </div>
          </div>

          <div class="row mb-3" id="record_content_row">
              <?php $field = 'collection_account'; $vo = ['name'=>'收款账号','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'collection_bank'; $vo = ['name'=>'收款银行','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'collection_name'; $vo = ['name'=>'开户名','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>
          </div>

        </form>  
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary submit_record_btn" data-bs-dismiss="modal">保存</button>
      </div>
    </div>
  </div>
</div>


<!--开票记录-->
<div class="modal fade bs-example-modal-lg in" data-bs-backdrop="static" tabindex="-1" id="modal-invoice">
  <div class="modal-dialog modal-xl modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h6 class="modal-title" id="exampleModalLiveLabel">添加开票记录</h6>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body" style="padding-top:0.5rem;">
        <form action="" method="post" id="invoice_content">
          <input type="hidden" name="order_id" value="{:$order['id']}" />
          <input type="hidden" name="invoice_id" value="" />
          
          <div class="row mb-3">
              <?php $field = 'invoice_type'; $vo = ['name'=>'收支方式','type'=>'select1','params'=>$InvoiceRecordModel->getInvoiceTypeList()]; ?>
              <div class="col-md-4">
                {include file="html/fields/select1" /}
              </div>

              <?php $field = 'is_red'; $vo = ['name'=>'红冲','type'=>'select1','params'=>$InvoiceRecordModel->getCommonIsList()]; ?>
              <div class="col-md-4">
                {include file="html/fields/select1" /}
              </div>

              <?php $field = 'title'; $vo = ['name'=>'票据抬头','type'=>'select1','params'=>arrayParamExtractVal($InvoiceRecordModel->getTitleList())]; ?>
              <div class="col-md-4">
                {include file="html/fields/select1" /}
              </div>
          </div>

          <div class="row mb-3">
              <?php $field = 'customer_name'; $vo = ['name'=>'开票顾客名称','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'invoice_code'; $vo = ['name'=>'发票代码','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'invoice_num'; $vo = ['name'=>'发票号码','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              
          </div>

          <div class="row mb-3">
              <?php $field = 'payment_name'; $vo = ['name'=>'付款方公司名','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'payment_ratepayer'; $vo = ['name'=>'统一社会信用代码','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'payment_bank'; $vo = ['name'=>'付款方开户行','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>
          </div>
          <div class="row mb-3">
              <?php $field = 'payment_account'; $vo = ['name'=>'付款方银行账号','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'payment_address'; $vo = ['name'=>'付款方公司地址','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>

              <?php $field = 'payment_tel'; $vo = ['name'=>'付款方电话号码','type'=>'text']; ?>
              <div class="col-md-4">
                {include file="html/fields/text" /}
              </div>
          </div>

          <div class="row mb-3">
              <?php $field = 'amount'; $vo = ['name'=>'金  额','type'=>'number']; ?>
              <div class="col-md-4">
                {include file="html/fields/number" /}
              </div>

              <?php $field = 'admin_id'; $vo = ['name'=>'开票人','type'=>'select1','params'=>$admins]; ?>
              <div class="col-md-4">
                {include file="html/fields/select1" /}
              </div>

              <?php $field = 'invoice_time'; $vo = ['name'=>'开票时间','type'=>'date']; ?>
              <div class="col-md-4">
                {include file="html/fields/date" /}
              </div>
          </div>

          <div class="row mb-3">
              <?php $field = 'remark'; $vo = ['name'=>'备注','type'=>'textarea']; ?>
              <div class="col-md-8">
                {include file="html/fields/textarea" /}
              </div>
          </div>


        </form>  
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary submit_invoice_btn" data-bs-dismiss="modal">保存</button>
      </div>
    </div>
  </div>
</div>


